var i = require("../../../uv-ui-tools/libs/mixin/mpMixin.js"), t = require("../../../uv-ui-tools/libs/mixin/mixin.js"), e = require("./props.js"), o = require("../../../../common/vendor.js");

require("../../../uv-ui-tools/libs/function/index.js"), require("../../../uv-ui-tools/libs/function/test.js"), 
require("../../../uv-ui-tools/libs/function/digit.js"), require("../../../uv-ui-tools/libs/util/route.js"), 
require("../../../uv-ui-tools/libs/function/debounce.js"), require("../../../uv-ui-tools/libs/function/throttle.js");

var r = {
    name: "uv-divider",
    mixins: [ i.mpMixin, t.mixin, e.props ],
    emits: [ "click" ],
    computed: {
        textStyle: function() {
            var i = {};
            return i.fontSize = this.$uv.addUnit(this.textSize), i.color = this.textColor, i;
        },
        leftLineStyle: function() {
            var i = {};
            return "left" === this.textPosition ? i.width = "80rpx" : i.flex = 1, i;
        },
        rightLineStyle: function() {
            var i = {};
            return "right" === this.textPosition ? i.width = "80rpx" : i.flex = 1, i;
        }
    },
    methods: {
        click: function() {
            this.$emit("click");
        }
    }
};

Array || o.resolveComponent("uv-line")(), Math;

var n = o._export_sfc(r, [ [ "render", function(i, t, e, r, n, s) {
    return o.e({
        a: o.p({
            color: i.lineColor,
            customStyle: s.leftLineStyle,
            hairline: i.hairline,
            dashed: i.dashed
        }),
        b: i.dot
    }, i.dot ? {} : i.text ? {
        d: o.t(i.text),
        e: o.s(s.textStyle)
    } : {}, {
        c: i.text,
        f: o.p({
            color: i.lineColor,
            customStyle: s.rightLineStyle,
            hairline: i.hairline,
            dashed: i.dashed
        }),
        g: o.s(i.$uv.addStyle(i.customStyle)),
        h: o.o(function() {
            return s.click && s.click.apply(s, arguments);
        })
    });
} ], [ "__scopeId", "data-v-84a7ba4b" ] ]);

wx.createComponent(n);